package com.dynamic.model.model.po;

import com.dynamic.model.common.entity.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import java.util.ArrayList;
import java.util.List;

/**
 * TMenuResource entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "Request_Head")
public class RequestHead extends BaseEntity {

	// Fields
	@Column(name = "requestName", length = 20)
	private String requestName;

	@Column(name = "requestDomain", length = 100)
	private String requestDomain;

	@Column(name = "requestUrl", length = 100)
	private String requestUrl;

	@Column(name = "requestContent", length = 1000)
	private String requestContent;

	@Column(name = "requestType", length = 10)
	private String requestType;

	@OneToMany
	private List<Parameter> parameters=new ArrayList<>();

	public String getRequestName() {
		return requestName;
	}

	public void setRequestName(String requestName) {
		this.requestName = requestName;
	}

	public String getRequestDomain() {
		return requestDomain;
	}

	public void setRequestDomain(String requestDomain) {
		this.requestDomain = requestDomain;
	}

	public String getRequestUrl() {
		return requestUrl;
	}

	public void setRequestUrl(String requestUrl) {
		this.requestUrl = requestUrl;
	}

	public String getRequestContent() {
		return requestContent;
	}

	public void setRequestContent(String requestContent) {
		this.requestContent = requestContent;
	}

	public String getRequestType() {
		return requestType;
	}

	public void setRequestType(String requestType) {
		this.requestType = requestType;
	}

	public List<Parameter> getParameters() {
		return parameters;
	}

	public void setParameters(List<Parameter> parameters) {
		this.parameters = parameters;
	}
}